﻿using System;
using System.ComponentModel.DataAnnotations;

namespace DTcms.Model
{
    /// <summary>
    /// 站点地图配置实体类
    /// </summary>
    [Serializable]
    public class sitemapconfig
    {
        public sitemapconfig()
        { }

        private int _sitemap_auto = 1;
        private string _sitemap_changefreq_index = "always";
        private string _sitemap_changefreq_list = "hourly";
        private string _sitemap_changefreq_show = "daily";
        private string _sitemap_priority_index = "1.0";
        private string _sitemap_priority_list = "0.8";
        private string _sitemap_priority_show = "0.5";
        private string _sitemap_zzbaidutoken = "";

        #region 基本信息==================================
        /// <summary>
        /// 是否自动生成 更新内容时候自动更新网站地图 1是 0否
        /// </summary>
        public int sitemap_auto
        {
            get { return _sitemap_auto; }
            set { _sitemap_auto = value; }
        }

        #region 更新频率
        /// <summary>
        /// 首页
        /// </summary>
        [DisplayFormat(ConvertEmptyStringToNull = false)]
        public string sitemap_changefreq_index
        {
            get { return _sitemap_changefreq_index; }
            set { _sitemap_changefreq_index = value; }
        }
        /// <summary>
        /// 列表页
        /// </summary>
        [DisplayFormat(ConvertEmptyStringToNull = false)]
        public string sitemap_changefreq_list
        {
            get { return _sitemap_changefreq_list; }
            set { _sitemap_changefreq_list = value; }
        }
        /// <summary>
        /// 内容页
        /// </summary>
        [DisplayFormat(ConvertEmptyStringToNull = false)]
        public string sitemap_changefreq_show
        {
            get { return _sitemap_changefreq_show; }
            set { _sitemap_changefreq_show = value; }
        }
        #endregion
        #region 优先级别
        /// <summary>
        /// 首页
        /// </summary>
        [DisplayFormat(ConvertEmptyStringToNull = false)]
        public string sitemap_priority_index
        {
            get { return _sitemap_priority_index; }
            set { _sitemap_priority_index = value; }
        }
        /// <summary>
        /// 列表页
        /// </summary>
        [DisplayFormat(ConvertEmptyStringToNull = false)]
        public string sitemap_priority_list
        {
            get { return _sitemap_priority_list; }
            set { _sitemap_priority_list = value; }
        }
        /// <summary>
        /// 内容页
        /// </summary>
        [DisplayFormat(ConvertEmptyStringToNull = false)]
        public string sitemap_priority_show
        {
            get { return _sitemap_priority_show; }
            set { _sitemap_priority_show = value; }
        }
        #endregion
        /// <summary>
        /// 实时推送Url的token 填入 百度搜索资源平台 的准入密钥，才能第一时间推送文章链接给百度蜘蛛。
        /// </summary>
        [DisplayFormat(ConvertEmptyStringToNull = false)]
        public string sitemap_zzbaidutoken
        {
            get { return _sitemap_zzbaidutoken; }
            set { _sitemap_zzbaidutoken = value; }
        }
        #endregion
    }
}
